<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>栏目管理</title>
<script type="text/javascript">
    app = '__CONTROLLER__';
</script>
<link href="__ADMIN_PUBLIC__css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__ADMIN_PUBLIC__js/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  //$(".click").click(function(){
 // $(".tip").fadeIn(200);
 // });
  
 // $(".tiptop a").click(function(){
 // $(".tip").fadeOut(200);
//});

 // $(".sure").click(function(){
 // $(".tip").fadeOut(100);
//});

 $(".cancel,.tiptop a").click(function(){
  $(".tip").fadeOut(100);
});

});
</script>

<style>
.textbox{
    height:20px;
    margin:0;
    padding:0 2px;
    box-sizing:content-box;
}
</style>
</head>


<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="{:U('Admin/Index/welcome/')}">首页</a></li>
    <li><a href="{:U('Admin/category/index/')}">栏目管理</a></li>
    </ul>
    </div>
    
    <div class="rightinfo">
    
    <div class="tools">
    
    	<ul class="toolbar">
        <li class="click"><a href="{:U('Admin/category/addCate/')}"><span><img src="__ADMIN_PUBLIC__images/t01.png" /></span>添加栏目</a></li>
        <li class="click"><span><img src="__ADMIN_PUBLIC__images/t02.png" /></span>修改</li>
        <li><span><img src="__ADMIN_PUBLIC__images/t03.png" /></span>删除</li>
        <li><span><img src="__ADMIN_PUBLIC__images/t04.png" /></span>统计</li>
        </ul>
        
        
        <ul class="toolbar1">
        <li><span><img src="__ADMIN_PUBLIC__images/t05.png" /></span>设置</li>
        </ul>
    
    </div>
    
    
    <table class="tablelist">
    	<thead>
    	<tr>
       
        <th>ID<i class="sort"><img src="__ADMIN_PUBLIC__images/px.gif" /></i></th>
        <th>栏目名称</th>
        <th>所属模型</th>
        <th>排序</th>
        <th>是否显示</th>
        <th>操作</th>
        </tr>
        </thead>
        <tbody>

        <foreach name="cateList" item="v">
        <tr>
       
        <td>{$v.cid}</td>
        <td><a href="{:U('articleList')}?cid={$v.cid}">{$v._name}</a></td>
        <td>{$v.modelName}</td>
        <td>{$v.sort}</td>
        <td><if condition="$v.is_show eq 0">正常显示</if><if condition="$v.is_show eq 1">隐藏</if></td>
        
        <td><a href="{:U('articleList')}?cid={$v.cid}" class="tablelink">栏目内容管理</a>  <a href="{:U('editCate')}?cid={$v.cid}" class="tablelink">编辑栏目</a>   <a href="javascript:del({$v.cid},{$v.duosute_model_mid});" class="tablelink del"> 删除栏目</a></td>
        </tr> 
        </foreach>

        
        </tbody>
    </table>


   

    
    
    <div class="tip">
    	<div class="tiptop"><span>提示信息</span><a></a></div>
        
      <div class="tipinfo">
        <span><img src="__ADMIN_PUBLIC__images/ticon.png" /></span>
        <div class="tipright">
        <p>是否确认对信息的修改 ？</p>
        <cite>如果是请点击确定按钮 ，否则请点取消。</cite>
        </div>
        </div>
        
        <div class="tipbtn">
        <input name="" type="button"  class="sure" value="确定" />&nbsp;
        <input name="" type="button"  class="cancel" value="取消" />
        </div>
    
    </div>
    
    
    
    
    </div>
    
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');

          //删除栏目  
      function del(cid,mid){
     //$('.del').click(function(){
        $('.tipright p').html('您确认要要删除栏目吗？');
        $(".tip").fadeIn(200);
            $(".sure").click(function(){
                location.href=app+'/delCate/?cid='+cid+'&mid='+mid;
            });
      //})
    }
	</script>

</body>

</html>
